<template>
  <div class="container">
    <router-view></router-view>
    <router-view name="footer"></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss">
* { padding: 0;margin: 0;list-style: none; }
html,body,.container { width: 100%;height: 100%;}
// html {font-size: 100px;}//如果rem中的html根节点字体大小是不变的，那么就和写px没什么区别
html{font-size: 26.66666666666vw;}
// 媒体查询设置横屏状态
@media all and (orientation : landscape){
  html{font-size: 100px;}
}
body{font-size: 12px;}
.container{
  max-width: 640px;//适配
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  .box{
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
    .header{
      height: .44rem;
      background-color: red;
    }
    .content{
      flex: 1;
      overflow: auto;
    }
  }
  .footer{
    height: .5rem;
    background-color: #efefef;
    ul{
      display: flex;
      width: 100%;
      height: 100%;
      justify-content: space-around;
      align-items: center;
      li{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        &.router-link-exact-active.router-link-active{
          color: orange;
        }
        span{
          margin-bottom: 3px;
          font-size: .14rem;
        }
      }
    }
  }
}
</style>